package org.example.service;

import org.example.domain.User;

import java.util.Collection;
import java.util.List;
import java.util.Map;

public interface UserService {
    int importAll(List<User> userList);
    User searchById(int id);
    User search(int id,String username);
    User searchByUsername(String username);
    int saveOne(User user);
    Map<String,String> registerUser(User user);
    int searchCountByUserName(String username);
    int searchCountByEmail(String email);
    String activationUser(int id,String activationCode);
    Map<String,String> login(String username,String password,boolean rememberMe);
    int updateHeaderUrlById(int userId,String headerUrl);
    int updatePasswordById(int id,String password);
    List<User> selectUsers(Collection<Object> ids,int page,int limit);


}
